package com.pjmike.netty;

import com.pjmike.netty.utils.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication()
@EnableTransactionManagement
@MapperScan("com.pjmike.netty.dao")
public class NettyApplication {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(NettyApplication.class, args);
        SpringContextUtil.setApplicationContext(applicationContext);
    }
}
